package cn.bdqn.repository;

import cn.bdqn.pojo.Department;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

//部门接口
public interface Asecu_DepartmentRepository extends JpaRepository<Department,Integer> {

    List<Department> findByAuditId(Integer auditId);

    List<Department> findAll(Specification<Department> spec);
}
